//MongoDB链接配置
const mgdb = {
    url: 'mongodb://127.0.0.1:27017/myweb',
    options: {
        authSource: 'admin',
        user: 'admin',
        pass: '123456',
    }
}
//token配置
const tokenConfig = {
    secret: 'myweb-jwt-secret', //签名
    expiresIn: '5d' //过期时间 5天
}
//限流数据
const limitFlow = {
    limit: 10,//次数
    interval: 10000,//时间窗口
}
//密码密匙
const SECRET_KEY = 'TUDOU_1124#'

module.exports = {
    mgdb,
    tokenConfig,
    limitFlow,
    SECRET_KEY
}